From: Jim Porter Date: Tue, 21 May 2024 00:38:00 +0000 (-0700) Subject: ; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior. X-Git-Tag: archive/raspbian/1%30.1+1-3+rpi1^2~14^2~18^2~1411 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eedb959441578f9b4e62b78e1a772328bffe9466;p=emacs.git ; * lisp/eshell/em-unix.el (eshell-grep): Fix "plain grep" behavior. --- diff --git a/lisp/eshell/em-unix.el b/lisp/eshell/em-unix.el index 751f13cc715..855efa26033 100644 --- a/lisp/eshell/em-unix.el +++ b/lisp/eshell/em-unix.el @@ -815,8 +815,8 @@ external command." (if (and maybe-use-occur eshell-no-grep-available) (eshell-poor-mans-grep args) (eshell-compile command (cons "-n" args) - (and eshell-plain-grep-behavior - 'interactive) + (when eshell-plain-grep-behavior + 'plain) #'grep-mode))) (defun eshell/grep (&rest args)